package com.zhj.interview;

/**
 * @author zhj
 */
public class Test26 {

    private static volatile Test26 instance;

    private Test26(){

    }

    public Test26 getInstance(){
        if (instance == null) {
            synchronized (Test26.class) {
                if (instance == null) {
                    instance = new Test26();
                }
            }
        }
        return instance;
    }
}
